<pre>
	<?php 
		$url = "http://treaties.un.org/doc/Publication/MTDSG/Volume%20I/Chapter%20IV/";	
		
		function get_url_contents($url){
	        $crl = curl_init();
	        $timeout = 5;
	        curl_setopt ($crl, CURLOPT_URL,$url);
	        curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);
	        curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
	        $ret = curl_exec($crl);
	        var_dump($ret);
	        curl_close($crl);
	        return $ret;
		}
		
		$result = get_url_contents($url);
		var_dump($result);
	?>
</pre>